﻿using System.Web;

namespace JinJiang.BookingEngine.Services
{
    public class LoginInfo
    {
        public static string LoginName
        {
            get
            {
                try
                {
                    return HttpContext.Current.Session["lgname"].ToString();
                }
                catch
                {
                    return "";
                }
            }
        }

        public static string Password
        {
            get
            {
                try
                {
                    return HttpContext.Current.Session["lgpassword"].ToString();
                }
                catch
                {
                    return "";
                }
            }
        }

        public static MemberInfo Member
        {
            get
            {
                try
                {
                    return HttpContext.Current.Session["member"] as MemberInfo;
                }
                catch
                {
                    return null;
                }
            }
        }
    }
}